import core.functions as func

uistyle = 'ttkbootstrap'
if uistyle == 'tkinter':
    from ui.tkinterui import *
if uistyle == 'ttkbootstrap':
    from ui.ttkbootstrapui import *

def run():
    app = MainWindow()
    app.root.protocol("WM_DELETE_WINDOW", lambda: func.on_closing(app.root))
    app.root.mainloop()

if __name__ == '__main__':
    run()
